package com.atguigu.utils;

public class IntegerStatistic {
    public Integer min;
    public Integer max;
    public Integer sum;
    public Integer count;
    public Integer avg;

    public IntegerStatistic() {
    }

    public IntegerStatistic(Integer min, Integer max, Integer sum, Integer count, Integer avg) {
        this.min = min;
        this.max = max;
        this.sum = sum;
        this.count = count;
        this.avg = avg;
    }

    @Override
    public String toString() {
        return "(" +
                "最小值：" + min +
                ", 最大值：" + max +
                ", 总和：" + sum +
                ", 总条数：" + count +
                ", 平均值：" + avg +
                ')';
    }
}
